package Chapter25.dao_.domain;

/**
 *
 * @author 杨森
 * @date 2022/11/22 11:24
 * @return null
 *  Actor 对象和 actor表的记录对应
 */
public class Admin { //Javabean, POJO, Domain对象

    private Integer id;
    private String username;
    private String password;

    public Admin() { //一定要给一个无参构造器[反射需要]
    }

    public Admin(Integer id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Admin{");
        sb.append("id=").append(id);
        sb.append(", username='").append(username).append('\'');
        sb.append(", password='").append(password).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
